package org.springblade.modules.platform.dto;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

@NoArgsConstructor
@Data
public class AddEquipmentRuningState {


    @ApiModelProperty("采集时间")
    private Long acquisitionTime;
    @ApiModelProperty("测量链编号")
    private Integer deptMeasuringInfoId;

    @ApiModelProperty("采集标识")
    private String acquisitionFlag;

    @ApiModelProperty("真空泵气压值")
    private BigDecimal rietschlePressure;

    @ApiModelProperty("测台集合")
    private List<MeasuringPlatformDTO> measuringPlatform;

    @NoArgsConstructor
    @Data
    public static class MeasuringPlatformDTO {
        @ApiModelProperty("测台编号")
        private Integer measuringPlatformCode;
        @ApiModelProperty("设备集合")
        private List<DeviceListDTO> deviceList;

        @NoArgsConstructor
        @Data
        public static class DeviceListDTO {
            @ApiModelProperty("设备ID")
            private String deviceId;
            @ApiModelProperty("属性集合")
            private List<AttributeListDTO> attributeListDTO;

            @NoArgsConstructor
            @Data
            public static class AttributeListDTO{
                @ApiModelProperty("属性名称")
                private String key;
                @ApiModelProperty("属性值")
                private Double value;
            }
        }
    }
}
